package dao.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 充值消费记录表
 * IfwAgentConsumeRecord entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ifw_agent_consume_record", catalog = "fw")
public class IfwAgentConsumeRecord extends BasePojo implements java.io.Serializable {

	// Fields

	private Integer agentConsumeIndex;
	private IfwAgentRegInfo ifwAgentRegInfo;
	private IfwCardInfo ifwCardInfo;
	private IfwAgentDevInfo ifwAgentDevInfo;
	private Short type;
	private Integer point;
	private Integer time;
	private String ctime;
	private String result;
	private Integer host;
	private Integer ac;

	@Override
	public Object getEntityId() {
		// TODO Auto-generated method stub
		return agentConsumeIndex;
	}
	// Property accessors
	@Id
	@TableGenerator(name = "AGENTCONSUMEINDEX_GEN", table = "sequence", pkColumnName = "SEQ_NAME", valueColumnName = "SEQ_COUNT", pkColumnValue = "SEQ_AGENTCONSUMEINDEX", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "AGENTCONSUMEINDEX_GEN")
	@Column(name = "agent_consume_index", unique = true, nullable = false)
	public Integer getAgentConsumeIndex() {
		return this.agentConsumeIndex;
	}

	public void setAgentConsumeIndex(Integer agentConsumeIndex) {
		this.agentConsumeIndex = agentConsumeIndex;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "agent_index")
	public IfwAgentRegInfo getIfwAgentRegInfo() {
		return this.ifwAgentRegInfo;
	}

	public void setIfwAgentRegInfo(IfwAgentRegInfo ifwAgentRegInfo) {
		this.ifwAgentRegInfo = ifwAgentRegInfo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "card_index")
	public IfwCardInfo getIfwCardInfo() {
		return this.ifwCardInfo;
	}

	public void setIfwCardInfo(IfwCardInfo ifwCardInfo) {
		this.ifwCardInfo = ifwCardInfo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "agent_dev_index")
	public IfwAgentDevInfo getIfwAgentDevInfo() {
		return this.ifwAgentDevInfo;
	}

	public void setIfwAgentDevInfo(IfwAgentDevInfo ifwAgentDevInfo) {
		this.ifwAgentDevInfo = ifwAgentDevInfo;
	}

	@Column(name = "type", nullable = false)
	public Short getType() {
		return this.type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	@Column(name = "point", nullable = false)
	public Integer getPoint() {
		return this.point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	@Column(name = "time", nullable = false)
	public Integer getTime() {
		return this.time;
	}

	public void setTime(Integer time) {
		this.time = time;
	}

	@Column(name = "ctime", nullable = false, length = 14)
	public String getCtime() {
		return this.ctime;
	}

	public void setCtime(String ctime) {
		this.ctime = ctime;
	}

	@Column(name = "result", nullable = false, length = 5)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Column(name = "host", nullable = false)
	public Integer getHost() {
		return this.host;
	}

	public void setHost(Integer host) {
		this.host = host;
	}

	@Column(name = "ac", nullable = false)
	public Integer getAc() {
		return this.ac;
	}

	public void setAc(Integer ac) {
		this.ac = ac;
	}

}